# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-mame2003
pkgver=0_git20240904
pkgrel=0
_commit="1a268a709d611f6a84d473754ee2dbcaf1c37a2e"
pkgdesc="Multiple Arcade Machine Emulator for libretro (2003)"
url="https://github.com/libretro/mame2003-libretro"
arch="all"
license="custom"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/mame2003-libretro/archive/$_commit.tar.gz
	gcc14.patch
	"
builddir="$srcdir/mame2003-libretro-$_commit"
options="!check" # No tests

build() {
	make
}

package() {
	install -Dm644 mame2003_libretro.so "$pkgdir"/usr/lib/libretro/mame2003_libretro.so
}

sha512sums="
168aa03e023bd96d31508e17709a6df80ccd89b92cb8b6e594c053c0590ae10cd17be32aa4c62400245a235c9480c6bec15c35ca57112695334d9239ecd35936  libretro-mame2003-1a268a709d611f6a84d473754ee2dbcaf1c37a2e.tar.gz
db2590346df42929c058d4555c587137f4d1503a1fcb407a3d68eafa7cb0b5d14ebee87b24dd09ad7e00f3f29f17a4a03d2da37a33b78325204971b316747055  gcc14.patch
"
